import { postAction } from '@/api/manage'
export default {
  data () {
    return {
      categoryList: []
    }
  },
  methods: {
    queryCategory (url, param = {}, config = {}) {
      console.log('栏目请求')
      return new Promise((resolve, reject) => {
        postAction(url, param, config).then(res => {
          console.log('res', res)
          // this.categoryList = res
          resolve(res)
        }).catch(err => {
          console.log('err', err)
          reject(err)
        })
      })
    }
  }
}
